package com.kekezu.kppw.dataprocess;

import java.util.Map;

import android.content.Context;

import com.kekezu.kppw.data.ManuscriptData;

public class ManuscriptDP {
	/**
	 * 创建稿件
	 * 
	 * @param strDesc
	 *            详情
	 * @param strTaskId
	 *            对应的任务id
	 * @param file_id
	 *            附件id
	 * @param context
	 */
	public static String[] createWinBid(String strDesc, String strTaskId,
			String file_id, String strPrice, Context context) {
		return ManuscriptData.createWinBid(strDesc, strTaskId, file_id,
				strPrice, context);
	}

	/**
	 * 附件上传
	 * 
	 * @param file_id
	 * @param context
	 * @return
	 */
	public static String fileUpload(String file_id, Context context) {
		return ManuscriptData.fileUpload(file_id, context);
	}

	/**
	 * 稿件详情
	 * 
	 * @param strWordId
	 *            稿件id
	 * @param context
	 * @return
	 */
	public static Map<String, String> getWorkDetails(String strWordId,
			Context context) {
		return ManuscriptData.getWorkDetails(strWordId, context);
	}

	/**
	 * 中标后交付
	 * 
	 * @param strDesc
	 *            交付详情
	 * @param strTaskId
	 *            对应的任务id
	 * @param strFile
	 *            交付附件
	 * @param context
	 */
	public static String[] createDelivery(String strDesc, String strTaskId,
			String strFile, String strSort, Context context) {
		return ManuscriptData.createDelivery(strDesc, strTaskId, strFile,
				strSort, context);
	}

	/**
	 * 交付稿件维权
	 * 
	 * @param strWorkId
	 *            稿件id
	 * @param intType
	 *            维权类型
	 * @param strDesc
	 *            维权详情
	 * @param strTaskId
	 *            维权对应任务id
	 * @param context
	 */
	public static String[] deliveryRight(String strWorkId, int intType,
			String strDesc, String strTaskId, Context context) {
		return ManuscriptData.deliveryRight(strWorkId, intType, strDesc,
				strTaskId, context);
	}

	/**
	 * 交易评论
	 * 
	 * @param strTaskId
	 * @param comment
	 * @param speed_score
	 * @param quality_score
	 * @param attitude_score
	 * @param strEvlType
	 * @param strWorkID
	 * @param context
	 */
	public static String[] putEvaluate(String strTaskId, String comment,
			float speed_score, float quality_score, float attitude_score,
			String strEvlType, String strWorkID, Context context) {
		return ManuscriptData.putEvaluate(strTaskId, comment, speed_score,
				quality_score, attitude_score, strEvlType, strWorkID, context);
	}

	/**
	 * 选稿中标
	 * 
	 * @param WorkId
	 * @param context
	 */
	public static String[] putWinBid(String WorkId, Context context) {
		return ManuscriptData.putWinBid(WorkId, context);
	}

	/**
	 * 交付稿件验收
	 * 
	 * @param WorkId
	 * @param context
	 */
	public static String[] deliveryAgree(String WorkId, String strStatus,
			Context context) {
		return ManuscriptData.deliveryAgree(WorkId, strStatus, context);
	}

	/**
	 * 协议
	 * 
	 * @param strCode
	 * @param context
	 * @return
	 */
	public static String agreementDetail(String strCode, Context context) {
		return ManuscriptData.agreementDetail(strCode, context);
	}

	/**
	 * 威客查询交付稿件详情
	 * 
	 * @param strTaskId
	 * @param context
	 * @return
	 */
	public static Map<String, String> guestDelivery(String strTaskId,
			Context context) {
		return ManuscriptData.guestDelivery(strTaskId, context);
	}

	/**
	 * 雇主查询交付稿件详情
	 * 
	 * @param strTaskId
	 * @param Uid
	 * @param context
	 * @return
	 */
	public static Map<String, String> agreeDelivery(String strTaskId,
			String Uid, Context context) {
		return ManuscriptData.agreeDelivery(strTaskId, Uid, context);
	}

	/**
	 * 查看评价信息
	 * 
	 * @param strWordId
	 * @param context
	 * @return
	 */
	public static Map<String, String> getEvaluate(String strWordId,
			Context context) {
		return ManuscriptData.getEvaluate(strWordId, context);
	}
}
